﻿<%@ page language="C#" autoeventwireup="true" inherits="Admin_BillRecove, App_Web_billrecove.aspx.fdf7a39c" %>
 <%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>    <link href="../css/Admin_Css.css" rel="stylesheet" type="text/css" />

   
         <script language="javascript" type="text/javascript">
    function expandcollapse(obj,row)
    {   
        var div = document.getElementById(obj);
      
        var img = document.getElementById('img' + obj);
        
        if (div.style.display == "none")
        {
   
            div.style.display = "block";
//            if (row == 'alt')
//            {
                img.src = "../images/up.gif";
//            }
//            else
//            {
//                img.src = "../images/down.gif";
//            }
            img.alt = "点击关闭";
        }
        else
        {
        
             div.style.display = "none";
//            if (row == 'alt')
//            {
                img.src = "../images/down.gif";
//            }
//            else
//            {
//                img.src = "../images/up.gif";
//            }
            img.alt = "点击展开";
        }
    } 
    </script> <script src="../Jscript/showModelessDialog.js" language="javascript" type="text/javascript"></script>
</head>
<body>     <script type="text/javascript" src="../DatePicker/WdatePicker.js"></script>

    <form id="form1" runat="server"><br />
    <div>
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;  font-size:12px;">
                        <tr>
                            <td style="background-image: url(../Images/btn_bg.gif); width: 100%; height: 24px">
                                &nbsp; 回收站</td>
                        </tr></table><br />货运单号：<asp:TextBox ID="stno" runat="server" BackColor="#EAF0E6"></asp:TextBox>&nbsp;
        发件人：<asp:TextBox ID="ssend" runat="server" BackColor="#EAF0E6"></asp:TextBox>
        收件人：<asp:TextBox ID="sget" runat="server" BackColor="#EAF0E6"></asp:TextBox>
        &nbsp; &nbsp;
        <br />
        <br />
        制单时间：<asp:TextBox ID="startime" runat="server" onfocus="WdatePicker({skin:'blue'})"   BackColor="#EAF0E6"></asp:TextBox>

       

        -- &nbsp;<asp:TextBox ID="endtime" runat="server" onfocus="WdatePicker({skin:'blue'})"  BackColor="#EAF0E6"></asp:TextBox>
        &nbsp;<asp:Button ID="searchbtn" runat="server" OnClick="searchbtn_Click" Text="搜索" /><br />
        <span style="color: #ff0066"><span style="color: #000033">&nbsp;</span></span><hr /><br />
        <table border="0" cellpadding="0" cellspacing="0" style="width: 1000px">
            <tr>
                 <td style="width: 100%; text-align:center">
        <asp:GridView ID="userbilllist" runat="server" AutoGenerateColumns="False"  PageSize="1" BorderColor="DarkGray" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" GridLines="Vertical" Width="1000px" ForeColor="Black">
            <Columns>     
                <asp:TemplateField>
                <ItemTemplate>
                
                 
                </ItemTemplate>
                    <ItemStyle Width="20px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="货运单号">
                <ItemTemplate>
                <asp:CheckBox ID="mainck" runat="server" Text=<%#Eval("TrackingNo")%> TextAlign="Right" />
                </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除人">
                <ItemTemplate>
                
                <%#Eval("DelUser")%>
                </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除时间">
                <ItemTemplate>
                <%#Convert.ToDateTime(Eval("DelDate")).ToString("d")%>
                </ItemTemplate>
                </asp:TemplateField>
                    <asp:BoundField DataField="Sender" HeaderText="寄件人" >
                                <ItemStyle Width="50px" />
                              </asp:BoundField>
                           
                <asp:BoundField HeaderText="收件人" DataField="Receiver">
                    <ItemStyle Width="50px" />
                </asp:BoundField>
                       <asp:BoundField DataField="Origin" HeaderText="启运地" >
                                <ItemStyle Width="50px" />
                              </asp:BoundField>
                <asp:BoundField HeaderText="目的地" DataField="Destination" >
                    <ItemStyle Width="50px" />
                </asp:BoundField>
         
                <asp:BoundField HeaderText="总金额" DataField="Total" >
                    <ItemStyle Width="50px" />
                </asp:BoundField>
         
        
                <asp:TemplateField>
                <ItemTemplate>
                 <tr>
                 <td colspan="100%"  >
                <div id="div<%# Eval("TrackingNo") %>" style="display:none;position:relative;left:1px;OVERFLOW: auto;WIDTH:100%" >
                
                  <asp:GridView ID="fendan" runat="server" AutoGenerateColumns="False" Width="1000px" BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" GridLines="None" DataSource='<%#getrpro( Eval("TrackingNo").ToString()) %>' DataKeyNames="SepNo"  OnRowDeleting="fendan_RowDeleting" >
            <Columns>
                <asp:BoundField DataField="SortID" HeaderText="序号" >
                <ItemStyle  Width="30px" />
                </asp:BoundField>
                <asp:TemplateField  HeaderText="分单单号">
                <ItemTemplate>
                
 
                </ItemTemplate>
                <ItemStyle  Width="120px" />
                </asp:TemplateField>
                               <asp:TemplateField HeaderText="货运状态">
                <ItemTemplate>
        [<a href='BillStateEdit.aspx?area=add&&sepno=<%#Eval("SepNo")%>&&tno=<%#Eval("TrackingNo")%>'>添加新状态</a>]    [<a href='SepBill.aspx?tid=<%#Eval("SepNo")%>#zt'>查看所有状态</a>]   <%#Eval("SBState")%>
                </ItemTemplate>
                    <ItemStyle Width="625px" VerticalAlign="Middle"  HorizontalAlign="Left" />
                </asp:TemplateField>
  
                <asp:TemplateField HeaderText="分单">
                <ItemTemplate>
          <a href='SepBillEdit.aspx?area=add&&tid<%#Eval("TrackingNo")%>'>添加新分单</a>
                </ItemTemplate>
                    <ItemStyle Width="75px" />
                 
                </asp:TemplateField>
                
                <asp:CommandField ShowDeleteButton="True" HeaderText="删除" >
                    <ItemStyle Width="50px" />
                      </asp:CommandField>
            </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <RowStyle CssClass="showlist1" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#C0C0FF" Font-Bold="True" ForeColor="Green" />
            <AlternatingRowStyle CssClass="showlist2" />
        </asp:GridView>
         </div>
      </td>
      </tr>
 
                </ItemTemplate>
              
                
                </asp:TemplateField>
                
            </Columns>
            <FooterStyle BackColor="#CCCCCC" />
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <HeaderStyle Font-Bold="True" ForeColor="White" BorderStyle="None" BackColor="Navy" />
            <AlternatingRowStyle CssClass="showlist2 " />
            <RowStyle CssClass="showlist1" />
        </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style="width: 100%">
        <webdiyer:AspNetPager ID="NewsPage" runat="server" AlwaysShow="True" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
            NumericButtonCount="10" OnPageChanged="NewsPage_PageChanged" PageIndexBoxType="TextBox" ShowCustomInfoSection="Right" ShowPageIndexBox="Always" SubmitButtonText="Go"
            TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" Width="672px" >
        </webdiyer:AspNetPager>
                </td>
            </tr>
            <tr>
                <td style="width: 100%">
                </td>
            </tr>
        </table>
        <br />
        <asp:Button ID="delbtn" runat="server" Text="还原" OnClick="delbtn_Click" />&nbsp;&nbsp;<br />
        &nbsp;<br />
        <br />
      
        <br />
    </div>
    </form>
</body>
</html>
